#include"MyPQueue.h"
using std::cout;
using std::endl;
using namespace MyPQ;

void text1()
{
  priority_queue<int,std::vector<int>,MyPQ::greater<int>> pq;
  pq.push(9);
  pq.push(4);
  pq.push(7);
  pq.push(2);
  pq.push(6);
  pq.push(1);
  while(!pq.empty())
  {
    cout << pq.top() << endl;
    pq.pop();
  }
}
int main()
{
  text1();
  return 0;
}
